<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>商城模板</title>
	    <script src="./assets/mui/js/mui.min.js"></script>
	    <link href="./assets/mui/css/mui.min.css" rel="stylesheet"/>
	    <link href="./assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
        <link href="./assets/css/style.css" rel="stylesheet"/>
        <style>
			.mui-row.mui-fullscreen>[class*="mui-col-"] {
				height: 100%;
			}
			.mui-col-xs-3,
			.mui-control-content {
				overflow-y: auto;
				height: 100%;
			}
			.mui-segmented-control .mui-control-item {
				line-height: 50px;
				width: 100%;
			}
			.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
				background-color: #fff;
			}


            .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active{
                border-left: 3px solid #00cc7d;
            }

		</style>
</head>
<body>
    <header class="mui-bar mui-bar-nav my-header">
        <h1 class="mui-title">商城模板</h1>
        <a class="mui-icon mui-icon-search mui-pull-right"></a>
    </header>
    <nav class="mui-bar mui-bar-tab my-footer">
        <a class="mui-tab-item" href="#tabbar">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item mui-active" href="#tabbar-with-chat">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="#tabbar-with-contact">
            <span class="mui-icon fa fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="#tabbar-with-map">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>   

    
    <div class="mui-content mui-row mui-fullscreen">
        <div class="mui-col-xs-3">
            <div id="segmentedControls" class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-vertical">
                <a class="mui-control-item" href="#content0">酒水</a>
                <a class="mui-control-item" href="#content1">电器</a>
            </div>
        </div>
        <div id="segmentedControlContents" class="mui-col-xs-9" style="border-left: 1px solid #c8c7cc;">
            <div id="content0" class="mui-control-content">
                <div class="mui-row mui-col-sm-6 mui-col-xs-12 types">
                    <div class="mui-col-xs-4">
                        <img src="./assets/images/p1.jpg"/>
                        <span>天猫分期</span>
                    </div>
                    <div class="mui-col-xs-4">
                        <img src="./assets/images/p2.jpg"/>
                        <span>天猫分期</span>
                    </div>
                    <div class="mui-col-xs-4">
                        <img src="./assets/images/p3.jpg"/>
                        <span>酒水</span>
                    </div>
                    <div class="mui-col-xs-4">
                        <img src="./assets/images/p4.jpg"/>
                        <span>天猫分期</span>
                    </div>

                </div>
            </div>
            <div id="content1" class="mui-control-content">
                    <ul class="mui-table-view">
                        <li class="mui-table-view-cell">第1个选项卡子项-1</li>
                        <li class="mui-table-view-cell">第1个选项卡子项-2</li>
                    </ul>
                </div>
        </div>
    </div>
    <script>
        mui.init({
            swipeBack: true //启用右滑关闭功能
        });

        var controls = document.getElementById("segmentedControls");
	    var contents = document.getElementById("segmentedControlContents");
        controls.querySelector('.mui-control-item').classList.add('mui-active');
	    contents.querySelector('.mui-control-content').classList.add('mui-active');
    </script>

</body>
</html>